new Vue({
    el: "#web",
    data: {
        curPage: "home",
    },

    components: {
        home: {
            template: "#home"
        },
        classify: {
            template: "#classify"
        },
        discover: {
            template: "#discover"
        },
        personal: {
            template: "#personal"
        },
        detail_page: {
            template: "#detail_page"
        },
    },
    methods: {
        change_page: function(page, page_title) {
            console.log(page)
            document.title = page_title;
            this.curPage = page;
        }
    }
})
